import re

text = """
Step 1: Observed output of cmd `python_execute` executed:
{'observation': "Found resume files: ['.\\\\workspace\\\\【Android开发_深圳 14-18K】
吴树登 9年.pdf']", 'success': True}  Step 2: {'observation':'how','success': True}

"""

pattern = r"{[^{}]*?}"  # 匹配基础字典结构
matches = re.findall(pattern, text)

observations = []
for match in matches:
    observation_match = re.search(r"'observation':\s*('[^']*'|\"[^\"]*\")", match)
    print(observation_match.group(1)[1:-1])
